import axios from './request';
const pre = '/outpatient-service/zsdx-outpatient-service/menzhen/registration';

export default {
  //登录
  LOGIN: data =>
    axios({
      url: '/login-service/zsdx-login-service/login/login/do/' + data.userName + '/' + data.userPwd,
      method: 'post',
    }),
  LOGOUT: data =>
    axios({
      url: '/login-service/zsdx-login-service/login/logout/do',
      method: 'post',
      data: data,
    }),
  UPDATATOKEN: data =>
    axios({
      url: '/login-service/zsdx-login-service/login/login/refresh',
      method: 'post',
      data: data,
    }),
  //陶箴昊
  SELECT_BR: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgSignatureChargeDoctor',
      method: 'post',
      data: data,
    }),
  SELECT_BLBR: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/leaveHospital/selectPage/select/ByFgSignatureChargeDoctor',
      method: 'post',
      data: data,
    }),
  SELECT_MYALLSHOUSHU: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/select/operationList/' + data.fgNum,
      method: 'post',
    }),
  SELECT_ALLSHOUSHUDC: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/select/doctor',
      method: 'post',
      data: data,
    }),
  SELECT_ALLSHOUSHUNAME: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/select/allOperations',
      method: 'post',
      data: data,
    }),
  SELECT_SHOUSHUBR: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgSignatureChargeDoctor',
      method: 'post',
      data: data,
    }),
  SELECT_MYTIMES: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/select/patient/' + data.fgNum,
      method: 'post',
    }),
  SELECT_MYSHOUSHU: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/selectone/' + data.operationId,
      method: 'post',
    }),
  ADD_SHOUSHU: data =>
    axios({
      url: '/be-in-operation/zsdx-be-in-operation/subInterface/operation/add',
      method: 'post',
      data: data,
    }),
  SELECT_MYNOWBA: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgIdNum/detail/' + data.fgIdNum + '/' + data.fgTimes,
      method: 'get',
    }),
  UPDATA_MYBA: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/HospitalRegistrationPage/add',
      method: 'post',
      data: data,
    }),
  SELECT_GJALLDATA: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/codeQuery/selectPage/select/Diagnose/' + data.page + '/' + data.pageSize,
      method: 'get',
    }),
  SELECT_BlMYALLDATA: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/leaveHospital/selectPage/select/ByFgbNum/' + data.chNum + '/' + data.chTimes,
      method: 'get',
    }),
  UPDATA_GJ: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/codeQuery/updatePage/update/Diagnose',
      method: 'post',
      data: data,
    }),
  ADDDATA_GJ: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/codeQuery/addPage/add/Diagnose',
      method: 'post',
      data: data,
    }),
  DELECT_GJ: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/codeQuery/selectPage/select/Diagnose/' + data.diseaseIcd9,
      method: 'post',
    }),
  UPDATA_MYBL: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/leaveHospital/updatePage/update',
      method: 'post',
      data: data,
    }),
  SELECT_BLBYID: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/leaveHospital/selectPage/select/ByFgNum/detail',
      method: 'post',
      data: data,
    }),
  SELECT_BABYQK: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgInStatus',
      method: 'post',
      data: data,
    }),
  SELECT_BABYTIME: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgInTime/',
      method: 'post',
      data: data,
    }),
  SELECT_BABYID: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/selectPage/select/ByFgNum/detail',
      method: 'post',
      data: data,
    }),
  SELECT_TONGJIGZJIDU: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/ByQuarter/' + data.startTime + '/' + data.endTime,
      method: 'get',
    }),
  SELECT_TONGJIGZYUE: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/ByYear/' + data.dateTime,
      method: 'get',
    }),
  SELECT_TONGJIGlJIDU: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/managementByQuarter/' + data.startTime + '/' + data.endTime,
      method: 'get',
    }),
  SELECT_TONGJIGlYUE: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/managementByYear/' + data.dateTime,
      method: 'get',
    }),
  SELECT_TONGJIZlJIDU: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/treatmentByQuarter/' + data.startTime + '/' + data.endTime,
      method: 'get',
    }),
  SELECT_TONGJIZlYUE: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/medicalRegistration/countPage/count/treatmentByYear/' + data.dateTime,
      method: 'get',
    }),
  EXCEL_TOEXCEL: data =>
    axios({
      url: '/medicalrecord-service/zsdx-medicalrecord-service/codeQuery/countPage/count/Diagnose',
      method: 'post',
      data: data,
    }),

  //柳丛金
  SELECT_keshi: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/sectionCode/sectionCode/select/all',
      method: 'get',
      data: data,
    }),
  SELECT_keshipeople: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/section',
      method: 'post',
      data: data,
    }),
  SELECT_gerenxiangqin: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/one',
      method: 'post',
      data: data,
    }),
  SELECT_jianli: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personHistory/personHistory/select/history',
      method: 'post',
      data: data,
    }),
  updata_jianli: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personHistory/personHistory/update',
      method: 'put',
      data: data,
    }),
  del_jianli: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personHistory/personHistory/delete/' + data,
      method: 'DELETE',
    }),
  SELECT_jiaren: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/familyMember/familyMember/select/member',
      method: 'post',
      data: data,
    }),
  xiugai_jiaren: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/familyMember/chaxun/update',
      method: 'put',
      data: data,
    }),
  del_jiashu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/familyMember/familyMember/update',
      method: 'put',
      data: data,
    }),
  add_jiashu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/familyMember/familyMember/add',
      method: 'post',
      data: data,
    }),
  SELECT_allpeople: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/all',
      method: 'get',
      data: data,
    }),
  SELECT_allxueli: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/highSchooling/highSchooling/select/all',
      method: 'get',
      data: data,
    }),
  SELECT_allzhiwu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/post/post/select/all',
      method: 'get',
      data: data,
    }),
  SELECT_allzhicheng: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/title/title/select/all',
      method: 'get',
      data: data,
    }),
  add_people: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/add',
      method: 'post',
      data: data,
    }),
  updata_bsaic: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/update',
      method: 'put',
      data: data,
    }),
  add_jianli: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personHistory/personHistory/add',
      method: 'post',
      data: data,
    }),
  del_yuangong: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personHistory/personHistory/delete/' + data,
      method: 'DELETE',
    }),
  mohuselect_yuangong: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/fuzzy',
      method: 'post',
      data: data,
    }),
  keshirenshu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/sectionCount',
      method: 'get',
      data: data,
    }),
  zhichengrenshu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/titleCount',
      method: 'get',
      data: data,
    }),
  sexrenshu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/genderCount',
      method: 'get',
      data: data,
    }),
  agerenshu: data =>
    axios({
      url: '/personnel-matters/zsdx-personnel-matters/personBase/personBase/select/ageCount',
      method: 'get',
      data: data,
    }),
  //张澜
  //获取所有挂号信息
  GET_REGISTRATION: data =>
    axios({
      url: pre + '/select/selectAll',
      method: 'get',
      params: data,
    }),
  DEL_REGISTRATION: data =>
    axios({
      url: '',
      method: 'get',
      data: data,
    }),
  //修改挂号
  XIU_REGISTRATION: data =>
    axios({
      url: pre + '/update/update',
      method: 'post',
      data: data,
    }),
  //挂号按病历卡查询
  CHA_REGISTRATION: data =>
    axios({
      url: pre + '/select/selectByNo',
      method: 'post',
      data: data,
    }),
  //新增挂号
  ADD_REGISTRATION: data =>
    axios({
      url: pre + '/add/insert',
      method: 'post',
      data: data,
    }),
  CHA_CARD: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/page/selectAll',
      method: 'post',
      data: data,
    }),
  //获取所有病人
  GET_ALLPATIENTS: data =>
    axios({
      url: pre + '/select/pSelect',
      method: 'get',
      params: data,
    }),
  //按身份查询病人
  GET_STATUS: data =>
    axios({
      url: pre + '/select/selectByStatus',
      method: 'post',
      data: data,
    }),
  //按卡号
  CHA_PATIENTSBYNO: data =>
    axios({
      url: pre + '/select/pSelByNo',
      method: 'post',
      data: data,
    }),
  // CHA_PATIENTSBYID:data=>axios({
  //   url:pre +'/select/pSelById/{id}',
  //   method:'get',
  //   params:data
  // }),
  //修改病人信息
  UPDATA_PATIENTS: data =>
    axios({
      url: pre + '/update/pUpdate',
      method: 'post',
      data: data,
    }),
  //查询科室
  CHA_KESHI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/select/selectAll',
      method: 'post',
      data: data,
    }),

  //统计今日
  TONGJI_TODAY: data =>
    axios({
      url: pre + '/select/statistical',
      method: 'post',
      data: data,
    }),
  //根据日期查询
  TONGJI_WEEK: data =>
    axios({
      url: pre + '/select/selectByDate',
      method: 'post',
      data: data,
    }),
  //但金岭
  // 所有医生
  GET_ALLDOCTOR: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/kanbing/select/All',
      method: 'get',
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 通过id获取药物
  GET_YAOWU: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/kanbing/select/drugOne',
      method: 'get',
      params: data,
    }),
  // 获取处方详情
  GET_CHUFANG: data =>
    axios({
      url: '/outpatient-service/valuation-fee/statistics-page/prescription/select',
      method: 'post',
      data: data,
    }),
  // 获取处方日记
  GET_BINRENGRIJI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/statistics-page/select/treat',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 显示处方详情
  GET_SHOWCHUFAN: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/statistics-page/select/prescriptionOne',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 删除药物
  GET_DELYAO: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/prescription/delete/one',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 新建处方
  GET_ADDYAO: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/kanbing/add/prescriptionAdd',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 删除药方
  GET_DELCHUFANG: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/statistics-page/select/prescriptionOne/cascade',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 修改药物剂量
  GET_REWRITERYAO: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/prescription/modify/one',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  // 添加新的💊
  GET_UPNEWYAO: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/valuation-fee/prescription/add/one',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'application/json',
      },
    }),
  //何静月
  POST_ADD: data =>
    axios({
      url: '/public-expense/zsdx-public-expense/gongfei/publicExpense/add',
      method: 'post',
      data: data,
    }),
  GET_CHAXUN: data =>
    axios({
      url: '/public-expense/zsdx-public-expense/gongfei/publicExpense/select/all',
      method: 'get',
      params: data,
    }),
  POST_XIUGAIBAOXIAODAN: data =>
    axios({
      url: '/public-expense/zsdx-public-expense/gongfei/publicExpense/update',
      method: 'post',
      data: data,
    }),
  GET_SHANCHUBAOXIAO: data =>
    axios({
      url: '/public-expense/zsdx-public-expense/gongfei/publicExpense/delete',
      method: 'get',
      params: data,
    }),
  GET_IDCHAXUN: data =>
    axios({
      url: '/public-expense/zsdx-public-expense/gongfei/publicExpense/select/one',
      method: 'get',
      params: data,
    }),
  //致远
  GET_ALLM: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/page/selectAll',
      method: 'post',
      data: { data },
    }),
  GET_ALLS: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/identity-status/select',
      method: 'post',
      data: data,
    }),
  GET_FIND: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/page/select',
      method: 'post',
      data: data,
    }),
  GET_ALLB: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/cost-page/select/selectAll',
      method: 'post',
      data: data,
    }),
  GET_FINDB: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/cost-page/select/one',
      method: 'post',
      data: data,
    }),
  GET_ALLTOP: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/charge-total-page/select',
      method: 'post',
      data: data,
    }),
  GET_ALLSTU: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/studentNo/select',
      method: 'post',
      data: data,
    }),
  GET_TER: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/medical-card/staffNo/select',
      method: 'post',
      data: data,
    }),
  //范丽娜
  // 门诊科目
  KEMU_XUANRAN: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/select/selectAll',
      method: 'post',
      data: data,
    }),
  KEMU_TIANJIA: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/add/addNew',
      method: 'post',
      data: data,
    }),
  KEMU_XIUGAI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/update/update',
      method: 'post',
      data: data,
    }),
  KEMU_SHANCHU: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/delete/' + data.id, //id/no
      method: 'post',
    }),
  KEMU_SEARCH: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/subject/select/selectByName',
      method: 'post',
      data: data,
    }),
  // 医生信息
  DOCTOR_XUANRAN: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/selectAll',
      method: 'post',
      data: data,
    }),
  DOCTOR_TIANJIA: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/add/insert',
      method: 'post',
      data: data,
    }),
  DOCTOR_XIUGAI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/update/update',
      method: 'post',
      data: data,
    }),
  DOCTOR_SHANCHU: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/delete/' + data.id,
      method: 'post',
      // params: data,
    }),
  DOCTOR_SEARCH: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/selectBySub',
      method: 'post',
      data: data,
    }),
  // 检查项目
  JIANCHA_XUANRAN: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/checkStandard/select/selectAll',
      method: 'post',
      data: data,
    }),
  JIANCHA_TIANJIA: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/checkStandard/add/insert',
      method: 'post',
      data: data,
    }),
  JIANCHA_XIUGAI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/checkStandard/update/update',
      method: 'post',
      data: data,
    }),
  JIANCHA_SHANCHU: data =>
    axios({
      url: '',
      method: 'post',
      data: data,
    }),
  JIANCHA_SEARCH: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/checkStandard/select/selectByName',
      method: 'post',
      data: data,
    }),
  // 资料查询
  SEARCH_DOCTOR: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/selectByDoctorNo',
      method: 'post',
      data: data,
    }),
  SEARCH_YAOID: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/selectByMediNo/' + data.no,
      method: 'post',
      // data: data,
    }),
  SEARCH_KA: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/selectByPersonNo/' + data.no,
      method: 'post',
      // data: data,
    }),
  SEARCH_YAONAME: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/kanbing/select/medicineByName',
      method: 'post',
      data: data,
    }),
  // 数据统计
  TONGJI_YAOFEI: (num, data) =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/moneyBy3Month/' + num,
      method: 'post',
      // data: data,
    }),
  TONGJI_KESHI: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/subjectBy3Month',
      method: 'post',
      data: data,
    }),
  TONGJI_HUIZONG: data =>
    axios({
      url: '/outpatient-service/zsdx-outpatient-service/menzhen/doctor/select/getReg',
      method: 'post',
      data: data,
    }),
};
